<template>
	<view class="page">
    
    <!--  lineStyle="width: 10px;" -->
    <vf-navbar :navs="navs" :current="current" @click="onnavtap"></vf-navbar>
    
    <swiper :indicator-dots="false" :autoplay="false" :current="current" @change="onswiperchange">
      <swiper-item v-for="(nav, index) in navs" :key="index">
        <scroll-view class="list" scroll-y="true" @scrolltolower="getPage">
          <view class="item" v-for="(item, idx) in datas[index]" :key="idx">
            <view class="l">
              <view class="cont"> 
                <view>APP大更新了</view>
                <view class="text">我是简介，我是内容...</view>
              </view> 
            </view>
            <view class="num" v-if="index<4"></view>
          </view> 
          <vf-loading v-if="nav.showLoading" :status="nav.status" :page="nav.page" @error="getPage" />
        </scroll-view>
      </swiper-item>
    </swiper>
    
	</view>
</template>

<script>
import { pages } from '@/mixin/page.js';
export default {
  mixins: [pages],
  data() {
    return {
      lazy: false
    };
  },
  
  computed:{
  	reqData() {
  		return {
  			yiji: '',
  		}
  	}
  },
  
  onLoad() {
    this.getNavs('getClassify', 'testLists');
  }
}
</script>

<style lang="scss" scoped>
.page { 
  @include page;
}

swiper, swiper-item {
  width: 100%;
  /* #ifndef H5 */
  height: calc(100vh - 66rpx);
  /* #endif */
  /* #ifdef H5 */
  height: calc(100vh - 66rpx - 44px);
  /* #endif */
}
.list{
  height: 100%;
}

.item {
  background: #fff;
  width: inherit;
  padding: 20rpx 24rpx;
  display: flex;
  justify-content: space-between;
  border-top: 20rpx solid #f3f3f3;
  align-items: center;
  .l {
    display: flex;
    .cont {
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      color: #333;
      view {
        display: flex;
      }
      .text {
        display: block;
        max-width: 440rpx;
        font-size: 22rpx;
        color: #666;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
      }
      .gf {
        font-size: 22rpx;
        background: $main-color;
        border-radius: 2rpx;
        color: #fff;
        width: 56rpx;
        text-align: center;
        line-height: 30rpx;
        margin-left: 10rpx;
      }
    }
  }
  image,
  .image {
    width: 90rpx;
    height: 90rpx;
    margin-right: 20rpx;
    margin-left: 30rpx;
    border-radius: 10rpx;
    overflow: hidden;
  }

  .num {
    width: 16rpx;
    height: 16rpx;
    background: #fd82a1;
    border-radius: 100rpx;
  }
}
</style>
